package com.wodsy.phoenix.dataobject.shopc.model;

// Generated 2015-3-6 15:40:39 by Hibernate Tools 3.4.0.CR1

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import javax.persistence.*;

import com.wodsy.phoenix.dataobject.base.PhoenixObject;
import com.wodsy.phoenix.dataobject.base.PhoenixRequest;
import com.wodsy.phoenix.dataobject.base.PhoenixResponse;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;


/**
 * TbGoodsClassInShop generated by hbm2java
 */
@Entity
@Table(name = "tb_goods_class_in_shop", catalog = "shopc")
public class GoodsClassInShop extends PhoenixObject implements Serializable,PhoenixRequest,PhoenixResponse {

	private Integer id;
	private int shopId;
	private Integer pid;
	private String name;
	private Integer level;
	private Integer weight;
	private Boolean showStatus;
	private Date createTime;
	private Date updateTime;

	public GoodsClassInShop() {
	}

	public GoodsClassInShop(Integer id, int shopId, Integer pid, String name, Integer level, Integer weight,
			Boolean showStatus, Date createTime, Date updateTime) {
		this.id = id;
		this.shopId = shopId;
		this.pid = pid;
		this.name = name;
		this.level = level;
		this.weight = weight;
		this.showStatus = showStatus;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "shop_id", nullable = false)
	public int getShopId() {
		return this.shopId;
	}

	public void setShopId(int shopId) {
		this.shopId = shopId;
	}

	@Column(name = "pid")
	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	@Column(name = "name", nullable = false, length = 48)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "level")
	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	@Column(name = "weight")
	public Integer getWeight() {
		return this.weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	@Column(name = "show_status")
	public Boolean getShowStatus() {
		return this.showStatus;
	}

	public void setShowStatus(Boolean showStatus) {
		this.showStatus = showStatus;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "GoodsClassInShop{" +
				"id=" + id +
				", shopId=" + shopId +
				", pid=" + pid +
				", name='" + name + '\'' +
				", level=" + level +
				", weight=" + weight +
				", showStatus=" + showStatus +
				", createTime=" + createTime +
				", updateTime=" + updateTime +
				'}';
	}
}
